<!-- 我的钱包 -->
<template>
	<view class="content">
		<view class="gdetail">
			<view class="bone">
				<image class="touimg" :src="info.avatar" mode="" />
				<view class="rval">
					<text class="bt">{{info.nickname}}</text>
					<view class="shiti">
						<view class="xian">{{info.rold_name}}</view>
						<text class="shitime">{{info.createtime}}</text>
					</view>
				</view>
			</view>
			<text class="mshushou">{{info.title}}</text>
			<text class="mshu">{{info.content}}</text>
			<view class="tuimg" v-if="info.images">
				<image v-for="(item,index) in info.images" class="tuimgs" :src="item" mode="widthFix" />
			</view>
		</view>
	</view>
</template>

<script>
	import { mapState, mapActions, mapGetters } from 'vuex';
	export default {
		components: {},
		data() {
			return {
				id:'',
				info:{}
			};
		},
		computed: {
		},
		onLoad(option) {
			if(option.id){
				this.id = option.id
			}
			this.getDetail()
		},
		// 触底加载更多
		onReachBottom() {
		},
		methods: {
			getDetail() {
				let that = this;
				that.$http('home.needgetContent', {
					id: that.id
				}).then(res => {
					if (res.code === 1) {
						that.info = res.data
					}
				});
			}
		}
	};
</script>

<style lang="scss">
	// 钱包记录
	.content {
		.gdetail{
			margin: 30rpx;
			background-color: #fff;
			border-radius: 10rpx;
			padding: 30rpx;
			.bone{
				display: flex;
				flex-direction: row;
				align-items: center;
				margin-bottom: 30rpx;
				.touimg{
					width: 100rpx;
					height: 100rpx;
					border-radius: 50%;
					margin-right: 20rpx;
				}
				.rval{
					flex: 1;
					display: flex;
					flex-direction: column;

				}
				.bt{
					color: #333;
					font-weight: 500;
					font-size: 30rpx;
				}
				
				.shiti{
					display: flex;
					flex-direction: row;
					align-items: center;
					margin-top: 8rpx;
					.xian{
						padding: 5rpx 15rpx;
						border-radius: 5rpx;
						background-color: rgba(254,213,187,1);
						color: rgba(222,72,33,1);
						font-size: 26rpx;
						font-weight: normal;
					}
					.shitime{
						display: inline-block;
						margin-left: 10rpx;
						color: #666;
						font-size: 24rpx;
						font-weight: 400;
					}
				}
			}
			.mshu{
				color: #666;
				font-size: 28rpx;
				font-weight: 400;
				display: block;
				margin-bottom: 10rpx;
			}
		}
		.mshushou{
			color: #333;
			font-weight: 400;
			font-size: 30rpx;
			display: block;
			margin-bottom: 20rpx;
		}
	}
	.tuimg{
		margin-top: 30rpx;
		display: flex;
		flex-direction: column;
		.tuimgs{
			width: 100%;
			height: 200rpx;
		}
	}
</style>
